package Accessors;

import Callbacks.AbstractCallback;
import Models.Administration;
import Presenter.AdministrationPresenter;
import android.app.ProgressDialog;
import android.content.Context;

@SuppressWarnings("rawtypes")
public class AdministrationAccessor extends AbstractAccessor<Administration,AdministrationPresenter,AbstractCallback> {
	private final String NAME = "administration";
	private final String DIALOG = "Admin";
	
	private final static AdministrationPresenter presenter = new AdministrationPresenter();
	
	//Modal dialog variable.
	ProgressDialog modalDialog = null;
	
	public AdministrationAccessor(AbstractCallback callback){
		super(presenter, callback);
	}
	
	public void getItem(final Context context){
		String dialog = "Loading " + DIALOG + "...";
		String rfString = NAME + "/1";
		super.getItem(context, dialog, rfString);
	}
	
	public void doItemUpdate(final Administration item, final Context context){
		String dialog = "Updating " + DIALOG + "...";
		String rfString = NAME;
		super.doItemUpdate(item, context, dialog, rfString);
	}
}
